/************************************************
* 文件描述: 自助服务页面
* 待完善:
* 待优化:
* 修改日期：2020.11.04
* 修改内容：
*   创建  HZH
*************************************************/
#ifndef DIYSUPPORTPAGE_H
#define DIYSUPPORTPAGE_H

#include <QWidget>
#include <QVBoxLayout>
#include <QLabel>
#include <QPushButton>
#include <QDesktopServices>
#include <QUrl>
#include "widget_parameter_class.h"
#include "myclick_widget.h"
#include "daemonipcdbus.h"
#include "ktoolbutton.h"
using namespace kdk;
class DIYSupportPage : public QWidget
{
    Q_OBJECT
public:
    explicit DIYSupportPage(QWidget *parent = nullptr);
    void changeFont(QFont curFont);
protected:
    bool eventFilter(QObject *obj, QEvent *ev) override;

public slots:
    void on_officialWeb_clicked();
    void on_kylinManual_clicked();
    void changePageForTheme(const QString& str);
signals:
private:
    void initPageLocation();
    QLabel *m_pKylinPic = nullptr;
    QLabel *m_pMoreInfoLink_1 = nullptr;
    QLabel *m_pMoreInfoLink_2 = nullptr;
    QLabel *m_pMoreInfoLink_3 = nullptr;
    QLabel *m_pPageTitle = nullptr;
    QLabel *m_pOnline = nullptr;
    QLabel *m_pTelphone = nullptr;
    QLabel *m_pMail = nullptr;

    KToolButton *m_pKylinOfficialWeb_1 = nullptr;
    QLabel *m_pKylinOfficialWeb_2 = nullptr;
    QLabel *m_pKylinOfficialWeb_3 = nullptr;

    KToolButton *m_pKylinManual_1 = nullptr;
    QLabel *m_pKylinManual_2 = nullptr;
    QLabel *m_pKylinManual_3 = nullptr;

    MyClickWidget *m_officialWeb = nullptr;
    MyClickWidget *m_kylinManual = nullptr;

    DaemonIpcDbus *m_daemonIpcDbus = nullptr;

};

#endif // DIYSUPPORTPAGE_H
